import Http from "../utils/Http.js";

/**
 * 获取菜单信息
 */
const userList = async () => {
    return await Http.httpPost("/user/userList", {
        'pageSize': 10,
        'currentPage': 1,
        'username': null
    });
}


/**
 * 添加菜单信息
 * @param 参数信息
 * @returns {Promise<void>} 异步响应
 */
const addUser = async (param) => {
    return await Http.httpPost("/addMenuResource", param);
}

export default {
    userList: userList,
    addUser: addUser,
}